//
//  CarTypePriceCell.m
//  AutoHome
//
//  Created by wqh on 15-5-14.
//  Copyright (c) 2015年 Wqh. All rights reserved.
//

#import "CarTypePriceCell.h"

@implementation CarTypePriceCell

- (void)awakeFromNib {
    // Initialization code
    self.phoneStyleView.scrollView.scrollEnabled = NO;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)phoneBtnClick:(UIButton *)sender {
    
}

- (void)showDataWithModle:(CarTypePriceModel *)model {
    self.shortNameLabel.text = model.shortname;
    self.addressLabel.text = model.address;
    self.priceLabel.text = [NSString stringWithFormat:@"%@万",model.price];
    
    [self.phoneStyleView loadHTMLString:model.phonestyled baseURL:nil];
    if ([[model.ispromotion stringValue] isEqualToString:@"1"]) {
        self.isSaleLabel.hidden = NO;
        self.saleLabel.frame = CGRectMake(62, 76, 52, 21);
    }else {
        self.isSaleLabel.hidden = YES;
        self.saleLabel.frame = CGRectMake(8, 76, 52, 21);
    }
    
    self.saleLabel.text = model.orderrange;
    
}

@end
